import request from '@/utils/http'; // 导入http中创建的axios实例
import qs from "qs"
const vip = {
	//vip列表
	vipList(){
		return request({
			url:'/vip/card/list',
			method:'get'
		})
	},
	//购买
	buyVip(params){
		let post_param = qs.stringify(params,{indices: false })
		return request({
			url:'/vip/card/unifiedOrder?'+post_param,
			method:'post'
		})
	},
	//获取VIP用户详情
	getVipInfo(){
		return request({
			url:'/vip/card/user/card/info',
			method:'get'
		})
	}
}
export default vip